package hn.cch.spring.context.boot;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.DisposableBean;

import javax.annotation.PreDestroy;

public class DestroyImpl implements DisposableBean {

    private static final Logger logger = LoggerFactory.getLogger(DestroyImpl.class);


    @PreDestroy
    public void preDestroy() {
        logger.info("preDestroy");
    }

    @Override
    public void destroy() throws Exception {
        logger.info("destroy");
    }

    public void destroyMethod() {
        logger.info("destroyMethod");
    }


}
